/**
 *
 */

const routes = [
  {
    path: '/',
    redirect: '/home',
  },
  {
    path: '/login',
    name: 'login',
    component: () => import('@/pages/login'),
  },
  {
    path: '/home',
    name: 'home',
    component: () => import('@/pages/home/main'),
    redirect: '/table2',
    children: [
      // {
      //   path: '/',
      //   redirect: '/dashboard/nbtableComponent',
      // },
      {
        path: '/table2',
        name: '决策表',
        component: () => import('@/pages/t1/t1.vue'),
      },
      {
        path: '/dashboard/nbtableComponent',
        name: '决策表编辑器-完整',
        component: () => import('@/pages/dashboard/NBTableCompoent.vue'),
      },
      {
        path: '/dashboard/nbtableComponentP',
        name: '决策表编辑器-甲方',
        component: () => import('@/pages/dashboard/NBTableCompoentP.vue'),
      },
      {
        path: '/tableDom',
        name: '表格表体合并-demo',
        component: () => import('@/pages/tableDemo/index.vue'),
      },
      {
        path: '/RuleTableDemo',
        name: '规则表-demo',
        component: () => import('@/pages/ruleTableDemo/RuleTableDemo.vue'),
      },
      {
        path: '/RuleTable',
        name: '规则表-demo',
        component: () => import('@/pages/rule-table-test'),
      },
      {
        path: '/ComponentDemo',
        name: '组件-demo',
        component: () => import('@/pages/CompoentDemo'),
      },
      {
        path: '/demo',
        name: 'demo',
        component: () => import('@/pages/demo'),
        children: [],
      },
      {
        path: '/demoNew',
        name: 'demoNew',
        component: () => import('@/pages/demo/indexNew.vue'),
      },
      {
        path: '/a',
        name: 'a',
        component: () => import('@/pages/a'),
      },
      {
        path: '/form-test',
        name: 'formText',
        component: () => import('@/pages/form-test'),
      },
      {
        path: '/form-test2',
        name: 'formText2',
        component: () => import('@/pages/form-test-2'),
      },
      {
        path: '/form-test3',
        name: 'formText3',
        component: () => import('@/pages/form-test-3'),
      },
      {
        path: '/form-test4',
        name: 'formText4',
        component: () => import('@/pages/form-test-4'),
      },
      {
        path: '/form-test5',
        name: 'formText5',
        component: () => import('@/pages/form-test-5'),
      },
      {
        path: '/form-test5_2',
        name: 'formText5_2',
        component: () => import('@/pages/form-test-5/index2'),
      },
      {
        path: '/form-test6',
        name: 'formText6',
        component: () => import('@/pages/form-test-6'),
      },
      {
        path: '/table-test10',
        name: 'tableTest10',
        component: () => import('@/pages/table-test-10'),
      },
      {
        path: '/b',
        name: 'b',
        component: () => import('@/pages/b'),
      },
      {
        path: '/c',
        name: 'c',
        component: () => import('@/pages/c'),
      },
      {
        path: '/paymentApplicationFormPay',
        name: 'paymentApplicationFormPay',
        component: () => import('@/pages/paymentApplicationFormPay'),
      },
      {
        path: '/jsonServerTest',
        name: 'jsonServer demo',
        component: () => import('@/pages/jsonServerTest'),
      },
      {
        path: '/fcTest',
        name: 'fcTest',
        component: () => import('@/pages/demo/fcTest'),
      },
      {
        path: '/dashboard/nbtabletest',
        name: 'nbtabletest',
        component: () => import('@/pages/dashboard/NBTableTest.vue'),
      },
      {
        path: '/TRTCTest',
        name: 'TRTCTest',
        component: () => import('@/pages/videoTRTC'),
      },
      {
        path: '/websocketTest',
        name: 'websocketTest',
        component: () => import('@/pages/websocketTest'),
      },
    ],
  },
  {
    path: '/layout',
    name: 'layout',
    component: () => import('@/pages/layout'),
    children: [],
  },
  // {
  //   path: '/demo',
  //   name: 'demo',
  //   component: () => import('@/pages/demo'),
  //   children: [
  //   ],
  // },
  {
    path: '*',
    name: '404',
    component: () => import('@/pages/exception/404'),
  },
]

export default routes
